package com.nc.cloud.admin.biz;

import com.nc.cloud.admin.entity.RoleMenu;
import com.nc.cloud.admin.mapper.RoleMenuMapper;
import com.nc.cloud.common.biz.BaseBiz;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 *
 *
 * @author XYP
 * @email 23484376@qq.com
 * @date 2020-04-07 14:26:01
 */
@Service
public class RoleMenuBiz extends BaseBiz<RoleMenuMapper, RoleMenu> {

    @Autowired
    RoleMenuMapper roleMenuMapper;

    public List<RoleMenu> findRoleMenuByUserMenu(HashMap userMenu) {
        return roleMenuMapper.findRoleMenuByUserMenu(userMenu);
    }

    public void deleteAllByMenuCode(HashMap params) {
        roleMenuMapper.deleteAllByMenuCode(params);
    }

    public void insertList(List<HashMap<String,Object>> params){
        roleMenuMapper.insertList(params);
    }

}